package calendar;

import java.util.EventObject;

/* this class stores the enumerations for action event types */
public class CalEvent extends EventObject {

  public static final int CONNECT = 0;
  public static final int CREATE = 1;
  public static final int ADD_EVENT = 2;
  public static final int EDIT_EVENT = 3;
  public static final int DELETE_EVENT = 4;
  public static final int SHOW_USER = 5;
  public static final int SHOW_EVENT = 6;
  public static final int CLOSE = 7;
  public static final int LIST_USERS = 8;
  public static final int DISCONNECT = 9;
  public static final int CREATE_EVENT = 10;
  public static final int LIST_EVENTS = 11;
  public static final int FOCUS_CONNECT = 12;
  public static final int FOCUS_CREATE = 13;

  private static final long serialVersionUID = 390758234L;

  int eventId;

  public int getEventId()
  {
    return eventId;
  }

  public CalEvent( Object source, int eventId )
  {
    super( source );
    this.eventId = eventId;
  }

}
